//
//  UIViewController+EndWhenTouch.m
//  BCVersion
//
//  Created by 吴 崧 on 14-2-23.
//  Copyright (c) 2014年 Jungle. All rights reserved.
//

#import "UIViewController+EndWhenTouch.h"

@implementation UIViewController (EndWhenTouch)

- (void)addFunctionToEndEdit {
	UITapGestureRecognizer *tapGr = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(stopEdit:)];
	[self.view addGestureRecognizer:tapGr];
}

- (void)stopEdit:(UITapGestureRecognizer *)gestureRecognizer {
	[self.view endEditing:YES];
}






@end
